<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--th:text 为 Thymeleaf 属性，用于在展示文本-->
<h1 th:text="${msg}">欢迎来到hello</h1>
<div>
    <label>时间：</label>
    <p th:text="${nowDate}">2021-11-16</p>
</div>
<div>
    <label>邮箱:</label>
    <p th:text="${info.email}">7989778@qq.com</p>
</div>
<div>
    <label>session中的邮箱:</label>
    <p th:text="${session.info2.email}">79897755555@qq.com</p>
</div>


<div th:object="${info}">
    <p>用户名:<span th:text="*{username}">tom</span></p>
    <p>密码:<span th:text="*{password}">123456</span></p>
    <p>邮箱:<span th:text="*{email}">11111@163.com</span></p>
</div>

<div>
    <table>
        <tr th:each="info : ${infos}">
            <td th:text="${info.username}">张三</td>
            <td th:text="${info.password}">45678</td>
            <td th:text="${info.email}">789789@163.com</td>
        </tr>
    </table>

</div>




</body>
<script type="javascript" src="webjars/jquery/3.6.0/jquery.min.js" th:src="@{/webjars/jquery/3.6.0/jquery.min.js}"></script>


</html>